package com.lesso.lll.sunflower.attendance.service;


import com.baomidou.mybatisplus.service.IService;
import com.lesso.lll.sunflower.attendance.entity.AttendanceRule;

/**
 * 考勤规则服务接口
 */
public interface AttendanceRuleService extends IService<AttendanceRule> {
    /**
     * 新增考勤规则
     * @param rule 规则信息
     * @return 规则ID
     */
    Long addRule(AttendanceRule rule);
    
    /**
     * 修改考勤规则
     * @param rule 规则信息
     * @return 是否成功
     */
    boolean updateRule(AttendanceRule rule);
    
    /**
     * 删除考勤规则
     * @param ruleId 规则ID
     * @return 是否成功
     */
    boolean deleteRule(Long ruleId);
}    